package com.yyt.consumer.controller;

import com.yyt.consumer.service.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yeyangtao
 * @since 2022/6/28 16:35
 */
@RestController
public class DemoController {
    @Resource
    private DemoService demoService;

    @GetMapping("demo")
    public String hello(String str) {
        return demoService.demo(str);
    }
}
